package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.StockOutDao;
import com.ericom.model.StockOut;
import com.ericom.service.StockOutManager;

@Service("stockOutManager")
public class StockOutManagerImpl extends GenericManagerImpl<StockOut, Long> implements
		StockOutManager {

	StockOutDao stockOutDao;
	@Autowired
	public StockOutManagerImpl(StockOutDao stockOutDao){
		super(stockOutDao);
		this.stockOutDao=stockOutDao;
	}

	@Override
	public List<StockOut> findStockOutByProduct(Long pid) {

		return this.stockOutDao.findStockOutByProduct(pid);
	}

}
